#! /usr/bin/python
# coding: utf-8

from Tkinter import *

root = Tk()
menubar = Menu(root)

def printItem():
    print 'add_separator'

filemenu = Menu(menubar, tearoff=0)

for k in range(5):
    filemenu.add_command(label=str(k), command=printItem)
    filemenu.add_separator()

menubar.add_cascade(label='Language', menu=filemenu)

filemenu.insert_command(1, label='1000', command=printItem)
filemenu.insert_checkbutton(2, label='2000', command=printItem)
filemenu.insert_radiobutton(3, label='3000', command=root.quit)

filemenu.insert_separator(1)
filemenu.insert_separator(3)
filemenu.insert_separator(5)

filemenu.delete(15)
filemenu.delete(1,6)

root['menu'] = menubar

root.mainloop()
